package com.spsoft.core.exception;

import com.spsoft.core.enums.ResponseEnum;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class LoginException extends RuntimeException {
    private String code;
    private String msg;
    private ResponseEnum e;
    public LoginException(ResponseEnum responseEnum) {
        this.code = responseEnum.getCode();
        this.msg = responseEnum.getMsg();
        this.e = responseEnum;
    }
}
